<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<META NAME="Generator" CONTENT="Microsoft Word 97">
<TITLE>Blast Off With BASIC Appendix B: DOS Command Summary</TITLE>
<META NAME="keywords" CONTENT="Brian Page, Blast Off, BASIC, programming, instruction, GW-BASIC">
<META NAME="description" CONTENT="Colloquia is a personal home page for photography, science, programming, and amateur radio">
<META NAME="Template" CONTENT="C:\PROGRAM FILES\MICROSOFT OFFICE\OFFICE\html.dot">
</HEAD>
<BODY TEXT="#000000" LINK="#0000ff" VLINK="#ff0000" BACKGROUND="bluenote.jpg">

<center>
<TABLE CELLSPACING=0 BORDER=0 WIDTH=600>
<TR><TD VALIGN="TOP">
<P><SMALL>&copy; 1991 Brian R. Page</SMALL> </P>
<I><H1 ALIGN="CENTER">Blast Off With BASIC</H1>
</I><H2 ALIGN="CENTER">Appendix B: DOS Command Summary</H2>
<FONT COLOR="#ff0000"><H3>CHDIR </H3>
</FONT><H4>PURPOSE </H4><DIR>
<DIR>

<P>Changes the current directory. </P></DIR>
</DIR>

<H4>SYNTAX </H4><DIR>
<DIR>

<P>CHDIR <I>directory</I> </P></DIR>
</DIR>

<P>EXPLANATION </P><DIR>
<DIR>

<I><P>directory</I> specifies the name of a disk directory. The name may be begin with a backslash (\) indicating the directory is a subdirectory of root. </P></DIR>
</DIR>

<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<FONT COLOR="#ff0000"><H3>COPY </H3>
</FONT><H4>PURPOSE </H4><DIR>
<DIR>

<P>Creates a copy of a file. </P></DIR>
</DIR>

<H4>SYNTAX </H4><DIR>
<DIR>

<P>COPY <I>input</I> <I>output</I> </P></DIR>
</DIR>

<H4>EXPLANATION </H4><DIR>
<DIR>

<P>The file named as input is copied to the file named as output. If a file by the same name as that specified as output already exists, its contents are destroyed by the COPY operation. Input and output are specified as <I>file</I> <I>paths</I>. </P></DIR>
</DIR>

<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<FONT COLOR="#ff0000"><H3>DIR </H3>
</FONT><H4>PURPOSE </H4><DIR>
<DIR>

<P>Displays the contents of the current directory. </P></DIR>
</DIR>

<H4>SYNTAX </H4><DIR>
<DIR>

<P>DIR /P </P>
<P>DIR /W </P></DIR>
</DIR>

<H4>EXPLANATION </H4><DIR>
<DIR>

<P>/P causes DOS to pause after filling a complete screen. </P>
<P>/W causes DOS to list files across the width of the screen. </P></DIR>
</DIR>

<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<FONT COLOR="#ff0000"><H3>ERASE </H3>
</FONT><H4>PURPOSE </H4><DIR>
<DIR>

<P>Deletes DOS disk files. </P></DIR>
</DIR>

<H4>SYNTAX </H4><DIR>
<DIR>

<P>ERASE <I>file path</I> </P></DIR>
</DIR>

<H4>EXPLANATION </H4><DIR>
<DIR>

<I><P>file path</I> may contain the disk drive identifier, directory name, and file name. </P></DIR>
</DIR>

<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<FONT COLOR="#ff0000"><H3>FORMAT </H3>
</FONT><H4>PURPOSE </H4><DIR>
<DIR>

<P>Prepares a disk for DOS to use. </P></DIR>
</DIR>

<H4>SYNTAX </H4><DIR>
<DIR>

<P>FORMAT <I>disk id</I> </P></DIR>
</DIR>

<H4>EXPLANATION </H4><DIR>
<DIR>

<B><P>disk id</B> specifies the letter of the disk drive. WARNING: Formatting a disk destroys all data on the disk. </P></DIR>
</DIR>

<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<FONT COLOR="#ff0000"><H3>MKDIR </H3>
</FONT><H4>PURPOSE </H4><DIR>
<DIR>

<P>Creates a new disk directory. </P></DIR>
</DIR>

<H4>SYNTAX </H4><DIR>
<DIR>

<P>MKDIR <I>directory</I> </P></DIR>
</DIR>

<H4>EXPLANATION </H4><DIR>
<DIR>

<I><P>directory</I> specifies a directory name. To indicate that a new directory is a subdirectory from the root directory, the name should begin with a backslash (\). </P></DIR>
</DIR>

<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<FONT COLOR="#ff0000"><H3>RMDIR </H3>
</FONT><H4>PURPOSE </H4><DIR>
<DIR>

<P>Removes a disk directory. </P></DIR>
</DIR>

<H4>SYNTAX </H4><DIR>
<DIR>

<P>RMDIR <I>directory</I> </P></DIR>
</DIR>

<H4>EXPLANATION </H4><DIR>
<DIR>

<I><P>directory</I> specifies a directory name to be remove. Directories must be empty before they can be removed. The current directory cannot be removed. </P></DIR>
</DIR>

<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<FONT COLOR="#ff0000"><H3>TYPE </H3>
</FONT><H4>PURPOSE </H4><DIR>
<DIR>

<P>Display the contents of a file on the screen. </P></DIR>
</DIR>

<H4>SYNTAX </H4><DIR>
<DIR>

<P>TYPE<I> file path </P></DIR>
</DIR>

</I><H4>EXPLANATION </H4><DIR>
<DIR>

<I><P>file path</I> may include the disk drive identifier, directory, and the file name. </DIR>
</DIR>

<P>&nbsp;</P>
<P>&nbsp;</P>
<CENTER>
<P><A HREF="_start.htm#content">Return to Table of Contents</A></P>
</CENTER>

</TD>
</TR>
</TABLE>

</center>

</BODY>
</HTML>
